import { http } from '/@/utils/http';

export async function userPage<T>(data: any) {
  return await http.request<T>('get', '/admin/user/page', data);
}

export async function addUser<T>(data: any) {
  return await http.request<T>('post', '/admin/user/add', data);
}

export async function updateUser<T>(data: any) {
  return await http.request<T>('post', '/admin/user/update', data);
}

export async function deleteUser<T>(data: any) {
  return await http.request<T>('post', '/admin/user/delete', data);
}
